<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
   <svg>
    
   </svg>

    <script src="snap.svg.js"></script>
    <script>
       // let pager = Snap(400,400);
       let pager = Snap('svg');
       pager.attr({
            width:400,
            height:400,
            viewBox:'0 0 200 200'
       });


       const element = pager.rect(50,50,100,50);

       element.attr({
            fill:'#fac',
            stroke:'#ccc',
            'strokeWidth':5,
            transform:'rotate(45,75,100)'
       });

       const circle = pager.circle(50,50,30);
       circle.attr({
            fill:'#acf',
            stroke:'#000',
            strokeWidth:5
       });

       const g = pager.g(element,circle);
       g.attr({
           transform:'translate(50,50)'
       });
    </script>
</body>
</html>